package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 短信配置对象 basicSmsConfig
 * 
 * @author ruoyi
 * @date 2025-03-02
 */
public class BasicSmsConfig extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 短信配置编号 */
    private Long smsConfigId;

    /** 供应商编号 */
    @Excel(name = "供应商编号")
    private Long supplierId;

    /** 告警阈值 */
    @Excel(name = "告警阈值")
    private Long alarmThreshold;

    /** 短信剩余量 */
    @Excel(name = "短信剩余量")
    private Long smsBalance;

    /** 告警人接受手机号码 */
    @Excel(name = "告警人接受手机号码")
    private String alarmReceiverPhone;

    /** api_key */
    @Excel(name = "api_key")
    private String apiKey;

    /** api_secret */
    @Excel(name = "api_secret")
    private String apiSecret;

    /** 短信发送号码 */
    @Excel(name = "短信发送号码")
    private String senderNumber;

    /** 创建人 */
    @Excel(name = "创建人")
    private String creator;

    /** 上次更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "上次更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastUpdateTime;

    /** 更新人 */
    @Excel(name = "更新人")
    private String updater;

    /** 是否激活 */
    @Excel(name = "是否激活")
    private Integer isActive;

    public void setSmsConfigId(Long smsConfigId) 
    {
        this.smsConfigId = smsConfigId;
    }

    public Long getSmsConfigId() 
    {
        return smsConfigId;
    }
    public void setSupplierId(Long supplierId) 
    {
        this.supplierId = supplierId;
    }

    public Long getSupplierId() 
    {
        return supplierId;
    }
    public void setAlarmThreshold(Long alarmThreshold) 
    {
        this.alarmThreshold = alarmThreshold;
    }

    public Long getAlarmThreshold() 
    {
        return alarmThreshold;
    }
    public void setSmsBalance(Long smsBalance) 
    {
        this.smsBalance = smsBalance;
    }

    public Long getSmsBalance() 
    {
        return smsBalance;
    }
    public void setAlarmReceiverPhone(String alarmReceiverPhone) 
    {
        this.alarmReceiverPhone = alarmReceiverPhone;
    }

    public String getAlarmReceiverPhone() 
    {
        return alarmReceiverPhone;
    }
    public void setApiKey(String apiKey) 
    {
        this.apiKey = apiKey;
    }

    public String getApiKey() 
    {
        return apiKey;
    }
    public void setApiSecret(String apiSecret) 
    {
        this.apiSecret = apiSecret;
    }

    public String getApiSecret() 
    {
        return apiSecret;
    }
    public void setSenderNumber(String senderNumber) 
    {
        this.senderNumber = senderNumber;
    }

    public String getSenderNumber() 
    {
        return senderNumber;
    }
    public void setCreator(String creator) 
    {
        this.creator = creator;
    }

    public String getCreator() 
    {
        return creator;
    }
    public void setLastUpdateTime(Date lastUpdateTime) 
    {
        this.lastUpdateTime = lastUpdateTime;
    }

    public Date getLastUpdateTime() 
    {
        return lastUpdateTime;
    }
    public void setUpdater(String updater) 
    {
        this.updater = updater;
    }

    public String getUpdater() 
    {
        return updater;
    }
    public void setIsActive(Integer isActive) 
    {
        this.isActive = isActive;
    }

    public Integer getIsActive() 
    {
        return isActive;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("smsConfigId", getSmsConfigId())
            .append("supplierId", getSupplierId())
            .append("alarmThreshold", getAlarmThreshold())
            .append("smsBalance", getSmsBalance())
            .append("alarmReceiverPhone", getAlarmReceiverPhone())
            .append("apiKey", getApiKey())
            .append("apiSecret", getApiSecret())
            .append("senderNumber", getSenderNumber())
            .append("createTime", getCreateTime())
            .append("creator", getCreator())
            .append("lastUpdateTime", getLastUpdateTime())
            .append("updater", getUpdater())
            .append("isActive", getIsActive())
            .toString();
    }
}
